package com.study.csc.a12deadlock;

/**
 * @author csc
 * @Date 2023/10/21 14:53
 * @PackageName:com.study.csc.a12deadlock
 * @ClassName: ThreadDemo
 * @Description: 死锁案例
 * @Version 1.0
 */
public class ThreadDemo {

    public static void main(String[] args) {
        /*
            需求: 死锁
        */

        MyThread t1 = new MyThread();

        MyThread t2 = new MyThread();



        t1.setName("线程A");
        t2.setName("线程B");


        t1.start();
        t2.start();

    }
}
